package com.firexxx.study.designmodel.observer;

/**
 * @description: TODO
 * @throws:
 * @author: zhuangzhang2
 * @date: 2019/11/14 15:19
 */
public class Main {

    public static void main(String[] args) {
        OneObserver oneObserver = new OneObserver();
        TwoObserver twoObserver = new TwoObserver();

        Subject subject = new Subject();
        subject.addObserver(oneObserver);
        subject.addObserver(twoObserver);

        subject.notifyObversers();
    }
}